print("课程表")

import datetime
time = datetime.datetime.today().weekday()
week_time = int(time)

if week_time == 0:
    print("当今没有课")
elif week_time == 1:
    print("8：00-9：45 English class(大英)")
    print("12:50-14:20 writing training(写作训练)")
elif week_time == 2:
    print("8：00-9：45 Introduction to Mao")
    print("10:35-12:00 introduction to advertising")
    print("14:30-15:55 H5 course")
    print("16:10-17:35 Dance appreciation course")
elif week_time == 3:
    print("10:35-12:00 English class")
    print("20:15-21:45 badminton class")
elif week_time == 4:
    print("9:45-12:00 python language")
    print("14:30-15:55 Introduction to Mao")
elif week_time == 5:
    print("8：00-9：45 illustrat course")
    print("9:45-12:00 entrepreneurial foundation")
elif week_time == 6:
    print("there are five days")
    print("how much homework waiting me！")

else:
    print("weekend")
    print("hard working")


import time

today = time.strftime("%A")
now = int(time.strftime("%H%M"))
print("现在时间{}".format(time.strftime("%H:%M")))

# 尝试添加查询功能

class1 = ("8：00-9：45 English class(大英);12:50-14:20 writing training(写作训练)","8：00-9：45 Introduction to Mao；10:35-12:00 introduction to advertising；14:30-15:55 H5 course；16:10-17:35 Dance appreciation course","10:35-12:00 English class;20:15-21:45 badminton class","9:45-12:00 python language;14:30-15:55 Introduction to Mao","AI加上创业基础（实践）")     #单引号’‘是一个元素，双引号“”是多个元素用的
time1 = ("星期一","星期二","星期三","星期四","星期五")
inquire = input("如果你想查询课表，请输入你要查询的时间(如星期一 或者 星期二）：")   # （inquire）这个东西是自变量
if inquire in time1:
    place= time1.index(inquire)       # time.index() 查询列表中某个元素所在的位置
    print(class1[place])

else:
    print("这个时间没课，该干嘛干嘛去！")

# 新加一个条件进行尝试
# 第二次
class4 = ["8：00-9：45 English class(大英);12:50-14:20 writing training(写作训练)","8：00-9：45 Introduction to Mao；10:35-12:00 introduction to advertising；14:30-15:55 H5 course；16:10-17:35 Dance appreciation course","10:35-12:00 English class;20:15-21:45 badminton class","9:45-12:00 python language;14:30-15:55 Introduction to Mao","AI+创业基础（实践）"]     #单引号’‘是一个元素，双引号“”是多个元素用的
time4 = ["星期一","星期二","星期三","星期四","星期五"]

inquire4 = input("继续查询课表，请输入查询的时间(如星期一 OR 星期二）：")   # （inquire）这个东西是自变量
if inquire4 in time4:
    place = time1.index(inquire4)       # time.index() 查询列表中某个元素所在的位置
    print(class4[place])

else:
    print("这个时间没课，该干嘛干嘛去！")

# 添加其余几次提问请求（重复语段1），后期可考虑循环语句如何使用
# 第三次
class5 = ["8：00-9：45 English class(大英);12:50-14:20 writing training(写作训练)","8：00-9：45 Introduction to Mao；10:35-12:00 introduction to advertising；14:30-15:55 H5 course；16:10-17:35 Dance appreciation course","10:35-12:00 English class;20:15-21:45 badminton class","9:45-12:00 python language;14:30-15:55 Introduction to Mao","AI+创业基础（实践）"]     #单引号’‘是一个元素，双引号“”是多个元素用的
time5 = ["星期一","星期二","星期三","星期四","星期五"]
inquire5 = input("继续查询课表，请输入查询的时间(如星期一 OR 星期二）：")   # （inquire）这个东西是自变量

if inquire5 in time5:
    place = time5.index(inquire4)       # time.index() 查询列表中某个元素所在的位置
    print(class5[place])

else:
    print("这个时间没课，该干嘛干嘛去！")

#   第四次

class6 = ["8：00-9：45 English class(大英);12:50-14:20 writing training(写作训练)","8：00-9：45 Introduction to Mao；10:35-12:00 introduction to advertising；14:30-15:55 H5 course；16:10-17:35 Dance appreciation course","10:35-12:00 English class;20:15-21:45 badminton class","9:45-12:00 python language;14:30-15:55 Introduction to Mao","AI+创业基础（实践）"]     #单引号’‘是一个元素，双引号“”是多个元素用的
time6 = ["星期一","星期二","星期三","星期四","星期五"]
inquire6 = input("如果你想继续，请输入：")   # （inquire）这个东西是自变量
if inquire6 in time6:
    place = time6.index(inquire4)       # time.index() 查询列表中某个元素所在的位置
    print(class6[place])

else:
    print("这个时间没课，该干嘛干嘛去！")


# 添加结束语，显示当前时间

day = time.strftime("星期%w")  # 查询星期几

time2 = time.strftime("%H：%M")  # 查询当前时间

time3 = day+" "+time2  # 字符串相加
print(time3)

print("ALL course have been shown")
print("GOOD LUCK")